<?php

/* @project : Template
 * @auther  : 青云
 * @date    : 2018/1/10
 * @desc    : 用户模型
 */

namespace app\common\model;

class ActivitySignUp extends Base
{
    protected $autoWriteTimestamp = true;

    function getSignNoAttr($value, $data)
    {
        $sign_no = $data['id']; // + 22004; // str_pad($data['id'], 5, 0, STR_PAD_LEFT);
        return $sign_no;
    }

    function getActivityNameAttr($value, $data)
    {
        $activity_name = model('activity')->where('id', $data['aid'])->value('title');
        return $activity_name;
    }

}
